<?php
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
 
// import Joomla view library
jimport('joomla.application.component.view');
 
/**
 * HTML View class for the Country Component
 */
class RetailShopViewHome extends JView
{
	// Overwriting JView display method
	function display($tpl = null) 
	{						
		// Display the view		
		$this->menutype = $this->get('Menutype');
		echo $this->menutype;
		
		switch($this->menutype)
		{
			case 2:
				header('Location: index.php?option=com_retailshop&view=home&task=startretailshop');
				break;
			case 3:
				header('Location: index.php?option=com_retailshop&view=home&task=listalldeal');
				break;
			case 4:
				header('Location: index.php?option=com_retailshop&view=home&task=events');
				break;
			default:
				header('Location: index.php?option=com_retailshop&view=home&task=findthelocalfreashop');
				break;
			
		}		
		parent::display($tpl);
	}	
	function startretailshop($tpl = null){
		parent::display($tpl);
	}
	function listalldeal($tpl = null){
		parent::display($tpl);
	}
	function events($tpl = null){
		parent::display($tpl);
	}
	function retailshop($tpl = null){
		parent::display($tpl);
	}
	function defaultcity($tpl = null){
		parent::display($tpl);
	}
	function detailscatelog($tpl = null){
		parent::display($tpl);
	}
	function findthelocalfreashop($tpl = null){
		parent::display($tpl);
	}
}

